<?php
// Luu ten style hien thoi
$v_current_style_name = "odd_row";
// Luu ten style tiep theo
$v_next_style_name = "round_row";
$v_goto_url	="index.php";
$v_count = sizeof($arr_all_af_concern);
?>
<!-- Bat cac phim: F12=false; Insert=true; Delete=true, ESC=false; Enter=false -->
<div id="hotkey" onKeyDown="javascript:process_hot_key(false,true,true,false,false);">
<!--bang chua tieu de cua form-->
<table width="100%" cellpadding="0" cellspacing="0">
	<tr class="normal_title">
		<form action="index.php" name="f_dsp_all_af_concern" method="post">
		<td width="100%" class="normal_title" style=".display:none;"><?php echo CONST_AF_CONCERN_LIST_TITLE;?></td>
		<input name="hdn_item_id" type="hidden" value="-1">
		<input type="hidden" name="hdn_af_id" value="<?php echo $v_af_id;?>">
		<input type="hidden" name="hdn_af_concern_id" value="">
		<input type="hidden" name="hdn_af_concern_id_list" value="">
		<input type="hidden" name="fuseaction" value="">
		<input type="hidden" name="hdn_current_fuseaction" value="DISPLAY_ALL_AF_CONCERN">
		<input type="hidden" name="hdn_direction" value=""><?
		if ($v_allow_editing_in_modal_dialog==1){?>
			<input name="allow_editing_in_modal_dialog" type="hidden" value="1"><?
		}
		if ($_MODAL_DIALOG_MODE==1){?>
			<input name="modal_dialog_mode" type="hidden" value="<? echo $_MODAL_DIALOG_MODE;?>"><?
		}?>	
	</tr>
	<tr><td height="5"></td></tr>
</table>
<div style="overflow: auto; width: 100%; height:80pt;padding-left:0px;margin:0px; background-color:white;">
<table width="100%" class="list_table2" cellpadding="0" cellspacing="0">
<col width="7%"><col width="5%"><col width="90%"><?php 	
	if($v_count>0){
		for($i=0;$i<$v_count;$i++){
			$v_current_item_id = $arr_all_af_concern[$i][0];
			$v_current_af_id = $arr_all_af_concern[$i][1];
			$v_current_af_concern_id = $arr_all_af_concern[$i][2];
			$v_current_af_concern_name = $arr_all_af_concern[$i][3];
			$v_current_af_concern_order = $arr_all_af_concern[$i][4];
			if ($v_current_style_name == "odd_row"){
				$v_current_style_name = "round_row";
			}else{
				$v_current_style_name = "odd_row";
			}?>
			<tr class="<?php echo $v_current_style_name; ?>">
				<td align="center">&nbsp;<?
					if ($i > 0){?>
						<img src="<?php echo $_ISA_IMAGE_URL_PATH;?>up.gif" class="normal_image" onClick="move_af_concern_updown('<? echo $v_current_af_concern_id;?>','UP','MOVE_AF_CONCERN_UPDOWN',document.forms(0).hdn_af_concern_id)"><?
					}
					if ($i < $v_count - 1){?>
						<img src="<?php echo $_ISA_IMAGE_URL_PATH;?>down.gif" class="normal_image" onClick="move_af_concern_updown('<? echo $v_current_af_concern_id;?>','DOWN','MOVE_AF_CONCERN_UPDOWN',document.forms(0).hdn_af_concern_id)"><?
					}?>	
				</td>
				<td align="center">&nbsp;
					<input type="checkbox" name="chk_af_concern_id" order="<?php echo $i;?>" value="<?php echo $v_current_af_concern_id;?>">
				</td>
				<td class="normal_label" align="left"><?php echo $v_current_af_concern_name; ?></td>
			</tr><?
		}
	}
	if ($v_current_style_name == "odd_row"){
		$v_next_style_name = "round_row";
	}else{
		$v_next_style_name = "odd_row";
	}
	echo _add_empty_row($v_count,_CONST_NUMBER_OF_ROW_PER_LIST,$v_current_style_name,$v_next_style_name,3);?>
</table>
</div>
<!--Table chua cac button-->
<table align="center">
	<tr><td height="10"></td></tr>
	<tr>
		<td><?php
			if($v_is_granted_update){?>
				<input type="button" value="<?php echo _CONST_ADD_BUTTON;?>" style="width:75px " name="btn_add" class="small_button" onClick="select_af_concern();">&nbsp;&nbsp;<?php
			}
			if($v_is_granted_delete){?>
				<input type="button" value="<?php echo _CONST_DELETE_BUTTON;?>" style="width:75px " name="btn_delete" class="small_button" onClick="btn_delete_onclick(document.forms(0).chk_af_concern_id, document.forms(0).hdn_af_concern_id_list,'DELETE_AF_CONCERN')">&nbsp;&nbsp;<?php
			}?>
		</td>
	</tr>
</table>
</div id="hotkey">
</form>


